package com.zhuangjie.shop.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 订单菜品评价（店铺评价子表）
 * </p>
 *
 * @author zhuangjie
 * @since 2024-04-25
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("shop_dish_evaluate")
@ApiModel(value = "ShopDishEvaluate对象", description = "订单菜品评价（店铺评价子表）")
public class ShopDishEvaluate implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("菜品是否满足id")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @ApiModelProperty("店铺id")
    @TableField("shop_id")
    private Long shopId;

    @ApiModelProperty("菜品id")
    @TableField("dish_id")
    private Long dishId;

    @ApiModelProperty("跟随主评价店铺id")
    @TableField("shop_evaluate_id")
    private Long shopEvaluateId;

    @ApiModelProperty("情感倾向(0 差 1好)")
    @TableField("sentiment")
    private Byte sentiment;
}
